


var addback = document.getElementById("zz")
var add = document.getElementById("user_add")
var addbut = document.getElementById("but-zz")
function openadd(){
	if (add.classList.contains('active')) {

	} else {
		add.classList.add('active')
		addback.style.display="block"
		add.style.display="block"
		addbut.style.display="block"
	}
}

function closeadd(){
	if (add.classList.contains('active')) {
		add.classList.remove('active')
		addback.style.display="none"
		add.style.display="none"
		addbut.style.display="none"
	}
}

var usersta = document.getElementById("user-sta").innerHTML
var userstaset = document.getElementById("user-sta-one").innerHTML

function f1() {
	if (usersta ==="[ROLE_admin]"){
		userstaset = "(管理员)"
	}else{
		userstaset = "(普通用户)"
	}
}

f1()